package service.impl;

import dao.PersonDao;
import dao.impl.PersonDaoImpl;
import entity.Person;
import service.PersonService;

import java.sql.SQLException;
import java.util.List;

public class PersonServiceImpl implements PersonService {
    PersonDao dao=new PersonDaoImpl();


    @Override
    public List<Person> cx() throws SQLException, ClassNotFoundException {
        return dao.cx();
    }

    @Override
    public int show(int a) throws SQLException, ClassNotFoundException {
        return dao.show(a);
    }

    @Override
    public int insert(Person person) throws SQLException, ClassNotFoundException {
        return dao.insert(person);
    }
}
